package com.example.comm.comm;

import java.util.List;

/**
 * 用作前后端通信得分页对象
 * @author zhangrb
 *
 * @param <T>
 */
public class PageVO<T> {

	private long totals;
	
	private long totalPages;
	
	private long currPage;
	
	private List<T> contentList;

	/**
	 * 获取记录总数
	 * @return
	 */
	public long getTotals() {
		return totals;
	}

	/**
	 * 设置记录总数
	 * @param totals
	 */
	public void setTotals(long totals) {
		this.totals = totals;
	}

	/**
	 * 获取总页数
	 * @return
	 */
	public long getTotalPages() {
		return totalPages;
	}

	/**
	 * 设置总页数
	 * @param totalPages
	 */
	public void setTotalPages(long totalPages) {
		this.totalPages = totalPages;
	}

	/**
	 * 获取当前页码
	 * @return
	 */
	public long getCurrPage() {
		return currPage;
	}

	/**
	 * 设置当前页码
	 * @param currPage
	 */
	public void setCurrPage(long currPage) {
		this.currPage = currPage;
	}

	/**
	 * 获取当前页记录集
	 * @return
	 */
	public List<T> getContentList() {
		return contentList;
	}

	/**
	 * 设置当前页记录集
	 * @param contentList
	 */
	public void setContentList(List<T> contentList) {
		this.contentList = contentList;
	}
	
	
}
